﻿<UserControl x:Class="DiscoveryLogic.UI.Layouts.Controls.MissingFundIndicator"
        xmlns="http://schemas.microsoft.com/client/2007" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        Width="640"
        Height="480"
        >

    <Canvas x:Name="MisingFundsIndicatorCanvas">
        <Canvas.Resources>
            <Storyboard x:Name="ShowToolTipAnim">
                <DoubleAnimationUsingKeyFrames  BeginTime="00:00:00" Storyboard.TargetName="MissingFundToolTip" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                    <SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="1" KeySpline="0.402,0,0.602,1"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames  BeginTime="00:00:00" Storyboard.TargetName="MissingFundToolTip" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                    <SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="1" KeySpline="0.402,0,0.602,1"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames  BeginTime="00:00:00.2" Storyboard.TargetName="MissingFundToolTipText" Storyboard.TargetProperty="Opacity">
                    <SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="1" KeySpline="0.402,0,0.602,1"/>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>

            <Storyboard x:Name="HideToolTipAnim">
                <DoubleAnimationUsingKeyFrames  BeginTime="00:00:00" Storyboard.TargetName="MissingFundToolTipText" Storyboard.TargetProperty="Opacity">
                    <SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="0" KeySpline="0.402,0,0.602,1"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames  BeginTime="00:00:00.2" Storyboard.TargetName="MissingFundToolTip" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                    <SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="0" KeySpline="0.402,0,0.602,1"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames  BeginTime="00:00:00.2" Storyboard.TargetName="MissingFundToolTip" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                    <SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="0" KeySpline="0.402,0,0.602,1"/>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
        </Canvas.Resources>

        <Rectangle x:Name="MissingFundToolTip" Stretch="Fill" Stroke="#FFF27814" Width="124" Height="30" RadiusX="4" RadiusY="4" Canvas.Top="-20" Canvas.Left="10">
            <Rectangle.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0" ScaleY="0" CenterX="0" CenterY="30"></ScaleTransform>
                </TransformGroup>
            </Rectangle.RenderTransform>
            
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="-0.133,-0.143" StartPoint="1.1,0.998">
                    <GradientStop Color="#FFFDFDFD" Offset="0.99"/>
                    <GradientStop Color="#FFFBF39D" Offset="0"/>
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        
        <TextBlock x:Name="MissingFundToolTipText" Width="120" Height="17.46" Canvas.Top="-16" Canvas.Left="16" FontFamily="Trebuchet MS" FontSize="9" Foreground="#FFF27814" Text="Drag and drop a fund from the fund panel to this area." TextWrapping="Wrap" Opacity="0"/>

        <Ellipse Width="15" Height="15" Stroke="#FFF27814" StrokeThickness="1">
		    <Ellipse.Fill>
			    <LinearGradientBrush EndPoint="-0.133,-0.143" StartPoint="1.1,0.998">
				    <GradientStop Color="#FFFFFFFF" Offset="1"/>
				    <GradientStop Color="#FFF5EE6E" Offset="0"/>
			    </LinearGradientBrush>
		    </Ellipse.Fill>
	    </Ellipse>

        <TextBlock Width="4.138" Height="17.46" Canvas.Left="4.931" FontFamily="Trebuchet MS" FontSize="14" FontWeight="Bold" Foreground="#FFF27814" Text="!" TextWrapping="Wrap"/>
                
    </Canvas>
    
</UserControl>
